package com.meetingshow.meeting.uiservice.model;

import java.util.Date;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.meeting.dao.model.UserFollowPO;
import com.meetingshow.privilege.uiservice.model.UserVO;

public class UserFollowVO extends BaseVO {
    /**
     * 
     */
    private static final long serialVersionUID = -5943651547035130338L;
    
    
    private Integer id;
    private Date createTime;
    private MeetingVO meeting;
    private UserVO user;
    
    public UserFollowVO() {
    }
    
    public UserFollowVO (UserFollowPO userFollowPO) {
        setId(userFollowPO.getId());
        setCreateTime(userFollowPO.getCreateTime());
        setMeeting(new MeetingVO(userFollowPO.getMeeting()));
        setUser(new UserVO(userFollowPO.getUser()));
    }
    
    public UserFollowPO toFollowPO() {
        UserFollowPO userFollowPO = new UserFollowPO();
        
        userFollowPO.setId(getId());
        userFollowPO.setCreateTime(getCreateTime());
        userFollowPO.setMeeting(getMeeting().toMeetingPO());
        userFollowPO.setUser(getUser().toUserPO());
        
        return userFollowPO;
    }
    
    /**
     * @return the id
     */
    public Integer getId() {
        return id;
    }
    /**
     * @param id the id to set
     */
    public void setId(Integer id) {
        this.id = id;
    }
    /**
     * @return the createTime
     */
    public Date getCreateTime() {
        return createTime;
    }
    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    /**
     * @return the meeting
     */
    public MeetingVO getMeeting() {
        return meeting;
    }
    /**
     * @param meeting the meeting to set
     */
    public void setMeeting(MeetingVO meeting) {
        this.meeting = meeting;
    }
    /**
     * @return the user
     */
    public UserVO getUser() {
        return user;
    }
    /**
     * @param user the user to set
     */
    public void setUser(UserVO user) {
        this.user = user;
    }
}
